<?php
function d($ar,$var_dump=0){
	if(!$var_dump)
		{print "<pre>"; print_r($ar); print "</pre>";}
	else
		var_dump($ar);
}
function dd($ar,$var_dump=0){
	if(!$var_dump)
		{print "<pre>"; print_r($ar); print "</pre>";}
	else
		var_dump($ar);
	die;
}

function _p($query){
	$words = explode(" ", $query);
	d($words);
	
	$op = array("create");
}

$query = $_POST['nlInput'];

# remove linebreaks
$query = str_replace("\r","",$query);
$query = str_replace("\n","",$query);


$totalQueries = explode(".",$query);

foreach ($totalQueries as $singleQuery ){
	if($singleQuery != '')
		_p($singleQuery); 
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Natural Language - Web</title>

<script type="text/javascript" src="jquery144.js"></script>

<style type="text/css">
	input,textarea {border:1px solid #E4E4E4;font-family:verdana;font-size:12px}
	body {font-family:verdana;font-size:12px}
</style>

</head>

<body>

</body>
</html>